package com.rocksdata.mc.entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 陈堂正 on 2017/2/7.
 */

public class NewsInfo2 implements Serializable{
    public static final int NEWS_TYPE_IMAGE_AND_TEXT = 0;
    public static final int NEWS_TYPE_IMAGE_LIST = 1;
    public static final int NEWS_TYPE_VIDEO = 2;

    public static final int POSITION_STICKY = 1;
    public static final int POSITION_NOMAL = 0;

    private String newsCode;
    private String title;
    private int type;
    private int topStatus;
    private String publishedTime;
    private String videoCoverPic;
    private String departmentCode;
    private String departmentName;
    private String publisherCode;
    private List<String> imgURL;

//    private List<NewsImageBean> imageList;
//    private NewsImageBean videoImage;

    private int commentCount;
    private String linkUrl;

    public String getNewsCode() {
        return newsCode;
    }

    public void setNewsCode(String newsCode) {
        this.newsCode = newsCode;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getTopStatus() {
        return topStatus;
    }

    public void setTopStatus(int topStatus) {
        this.topStatus = topStatus;
    }

    public String getPublishedTime() {
        return publishedTime;
    }

    public void setPublishedTime(String publishedTime) {
        this.publishedTime = publishedTime;
    }

    public String getVideoCoverPic() {
        return videoCoverPic;
    }

    public void setVideoCoverPic(String videoCoverPic) {
        this.videoCoverPic = videoCoverPic;
    }

    public String getDepartmentCode() {
        return departmentCode;
    }

    public void setDepartmentCode(String departmentCode) {
        this.departmentCode = departmentCode;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getPublisherCode() {
        return publisherCode;
    }

    public void setPublisherCode(String publisherCode) {
        this.publisherCode = publisherCode;
    }

//    public List<NewsImageBean> getImageList() {
//        return imageList;
//    }
//
//    public void setImageList(List<NewsImageBean> imageList) {
//        this.imageList = imageList;
//    }
//
//    public NewsImageBean getVideoImage() {
//        return videoImage;
//    }
//
//    public void setVideoImage(NewsImageBean videoImage) {
//        this.videoImage = videoImage;
//    }

    public int getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    public List<String> getImgURL() {
        return imgURL;
    }

    public void setImgURL(List<String> imgURL) {
        this.imgURL = imgURL;
    }

    @Override
    public boolean equals(Object o) {
        NewsInfo2 info;
        try {
            info = (NewsInfo2) o;
            if(info.getNewsCode() == null || newsCode == null)
                return false;
            return info.getNewsCode().equals(newsCode);
        }catch (Exception e) {
            return false;
        }
    }
}
